import java.io.*;
/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Test3 {
    public static void main(String[] args) throws Exception {
        File file = new File("D:\\JavaIO");
        if (file.isDirectory ( ))
        {
            String[] names = file.list ( );
            for (String name : names)
            {
                System.out.println(name);
            }
        }
    }
}
